package com.carambatv.android.utils;

import android.app.ProgressDialog;
import android.support.v4.app.FragmentActivity;

import com.carambatv.android.R;

public class DialogManager {

	private static ProgressDialog dialog;

	public static void showDialog(FragmentActivity activity) {
		dialog = ProgressDialog.show(activity, "", activity.getString(R.string.loading));
		dialog.show();
	}

	public static void hideDialog() {
		try {
			dialog.dismiss();
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
